﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace BPM.Web.Shared.Data;

public partial class ChangePasswordUserInput : BaseVM
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [DisplayName("业务号")]
    [Required(ErrorMessage = "业务号不能为空")]
    [JsonPropertyName("id")]
    public long Id { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    [DisplayName("密码")]
    [JsonPropertyName("password")]
    [Required(ErrorMessage = "密码不能为空")]
    public string? Password { get; set; }

    /// <summary>
    /// 新密码
    /// </summary>
    [DisplayName("新密码")]
    [JsonPropertyName("newPassword")]
    [Required(ErrorMessage = "新密码不能为空")]
    [StringLength(32, MinimumLength = 5)]
    public string? NewPassword { get; set; }

}
